Add a prelude module for star imports
authorFelix Krull <f_krull@gmx.de>
Sat, 29 Sep 2018 16:02:51 +0000 (18:02 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:52 +0000 (12:53 -0400)
rust-bindings/rust/conf/libostree.toml
rust-bindings/rust/libostree/src/lib.rs
rust-bindings/rust/libostree/src/prelude.rs [new file with mode: 0644]

index 178318f565fa68ed81736f3f6f3561caaf7b6a6c..8a147270a141d7e249ccdfed1820f940c35f650a 100644 (file)
@@ -18,8 +18,6 @@ manual = [
     "GLib.Variant",
     "Gio.Cancellable",
     "Gio.File",
-
-    #"OSTree.RepoCheckoutAtOptions",
 ]
 
 [[object]]
index ebc672815771c645dbbdcabd295544cd4531b060..2e7accdc35cd5ed291cd7a41742bbd00e8b8652f 100644 (file)
@@ -7,7 +7,12 @@ extern crate gobject_sys as gobject_ffi;
 extern crate glib;
 extern crate gio;
 
-pub use glib::Error;
+use glib::Error;
 
+// re-exports
 mod auto;
 pub use auto::*;
+
+// public modules
+pub mod prelude;
+pub use prelude::*;
diff --git a/rust-bindings/rust/libostree/src/prelude.rs b/rust-bindings/rust/libostree/src/prelude.rs
new file mode 100644 (file)
index 0000000..a289db0
--- /dev/null
@@ -0,0 +1 @@
+pub use traits::*;